package com.yingxin.yxerp.module.dingtalk.entity.enums;

public enum WeComFieldType {

    // 个人信息
    _11005(11005, "出生日期"),
    _11006(11006, "年龄"),
    _11007(11007, "籍贯" ),
    _11008(11008, "民族" ),
    _11009(11009, "婚姻状况" ),
    _11010(11010, "政治面貌" ),
    _11011(11011, "首次参加工作日期" ),
    _11012(11012, "社会工龄" ),
    _11013(11013, "工龄区间" ),
    _11015(11015, "身份证号码" ),
    _11017(11017, "户口类型" ),
    _11020(11020, "现居住地址" ),
    //    _11021(11021, "社保账号" ),                           // 无法获取
    _11022(11022, "公积金账号" ),
    _20002(20002, "身份证地址" ),

    // 在职信息
    // _12024(12024, "工号" ),                                // 无法获取
    _12003(12003, "员工类型" ),
    _12004(12004, "员工状态" ),
    _12018(12018, "入职日期" ),
    _12021(12021, "试用期" ),
    _12023(12023, "转正日期" ),
    _12010(12010, "职位" ),
    _12011(12011, "职级" ),
    _12014(12014, "办公地点" ),
    _12015(12015, "座位号" ),
    _12016(12016, "招聘类型" ),
    _12019(12019, "司龄" ),
    _12020(12020, "司龄区间" ),
    _20001(20001, "社保状况" ),

    // 银行卡信息
    _13001(13001, "开户行" ),
    _13002(13002, "银行卡号" ),

    // 教育经历
    _14001(14001, "学历" ),
    _14002(14002, "毕业院校" ),
    _14003(14003, "入学时间" ),
    _14004(14004, "毕业时间" ),
    _14005(14005, "专业" ),
    _14006(14006, "学位" ),

    // 工作经历
    _15001(15001, "前公司" ),
    _15002(15002, "前公司部门" ),
    _15003(15003, "前公司职位" ),
    _15004(15004, "开始日期" ),
    _15005(15005, "结束日期" ),
    _15006(15006, "工作描述" ),

    // 紧急联系人
    _17001(17001, "紧急联系人姓名" ),
    _17002(17002, "紧急联系人关系" ),
    _17003(17003, "紧急联系人手机" ),
    _17004(17003, "紧急联系人住址" ),

    // 家庭成员
    _16001(16001, "家人姓名" ),
    _16002(16002, "家人关系" ),
    _16003(16003, "家人手机" ),
    _16004(16004, "家人住址" ),

    // 合同信息
    _18001(18001, "合同公司" ),
    _18002(18002, "合同类型" ),
    _18003(18003, "合同起始日" ),
    _18004(18004, "合同到期日" ),
    _18007(18007, "续签次数" ),
    _18008(18008, "合同附件" ),

    // 材料附件
    _19001(19001, "员工照片" ),
    _19002(19002, "身份证人像面" ),
    _19003(19003, "身份证国徽面" ),
    _19004(19004, "学位证书" ),
    _19005(19005, "毕业证书" ),
    _19006(19006, "前公司离职证明" ),
    _19007(19007, "奖励证明" ),
    ;

    private Integer type;

    private String typeName;


    WeComFieldType(Integer type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public static WeComFieldType getEnum(Integer type) {
        if(  type == null ){
            return null;
        }
        for (WeComFieldType i : WeComFieldType.values()) {
            if ( i.getType() == type ) {
                return i;
            }
        }
        return null;
    }

}
